package model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import play.Logger;
import play.db.jpa.GenericModel;
import play.db.jpa.JPA;

/**
 * The persistent class for the orders database table.
 * 
 */
@Entity
@Table(name = "orders") 
public class Order extends GenericModel implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	public long id;

	public long createby;

	@Temporal(TemporalType.TIMESTAMP)
	public Date createtime;

	public Date departdate;

	public String departtime;

	public int lockdelay;

	@Temporal(TemporalType.TIMESTAMP)
	public Date locktime;

	public String orderno;

	public String departorgcode;

	public String departorgname;

	public String reachstationcode;

	public String reachstationname;

	public String schedulecode;

	public String sellorgname;

	public String sellorgcode;

	public int seatnum;

	public String seattype;

	public String sellway;

	public long updateby;

	@Temporal(TemporalType.TIMESTAMP)
	public Date updatetime;

	public String status;
	
	public Double amount;//订单总金额
	
	public String amounts;//车票金额列表

	public String netticketids;
	
	public Double exchangefee; // 交易手续费
	
	

}